//
//  LuDishTableViewCell.m
//  Delicious
//
//  Created by 魏群 on 16/5/7.
//  Copyright © 2016年 gy. All rights reserved.
//

#import "LuDishTableViewCell.h"
#import "LuDishListModel.h"
@implementation LuDishTableViewCell

- (void)setDataWithModel:(LuDishListModel *)model
{
    [self.dishPic sd_setImageWithURL:[NSURL URLWithString:model.imageUrl]];
    self.nameLabel.text = model.name;
    self.referrerLabel.text = model.referrer[@"nickname"];
    self.ingredientsLabel.text = model.ingredients;
    self.commentLabel.text = [NSString stringWithFormat:@"%@次点击  %@个收藏  %@条评论",model.hitscount, model.collectCount, model.commentCount];
    
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


@end
